<template>
  <!-- <router-view></router-view> -->

  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>
</template>
<script setup lang="ts">
import { userStore } from "@/store/userStore"
// import '@/config/init.ts'

// import { useRouter } from "vue-router";
// const router = useRouter();
// const routeObj = {
//   path: "/routerText", // 这里要把父路由的路径也带上
//   name: "routerText",
//   meta: { title: "测试路由test", noCache: true },
//   component: () => {
//     import("@/views/routerText.vue");
//   },
// };

// console.log("router", router);
// router.addRoute(routeObj);

// userStore().setRuleRoutes([])

// ** 每次刷新页面，控制该状态值，进行二次渲染动态路由
userStore().setIsRefer(true)
</script>
<style scoped lang="less"></style>
